Skip to content

Conversation

@dynst
Copy link
Contributor

@dynst dynst commented Oct 31, 2025

https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require

Two paragraphs earlier it said require() simply returns the module namespace object, so remove the phrase in the "module.exports" documentation #54563 that implies it's conditional on there being both named exports and a default export.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/loaders

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. module Issues and PRs related to the module subsystem. labels Oct 31, 2025
@joyeecheung joyeecheung added the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 2, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 2, 2025
@nodejs-github-bot nodejs-github-bot merged commit 601208b into nodejs:main Nov 2, 2025
28 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 601208b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. module Issues and PRs related to the module subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants